/*
 * Copyright 2021 Shulie Technology, Co.Ltd
 * Email: shulie@shulie.io
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pamirs.tro.entity.domain.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pamirs.tro.common.util.DateToStringFormatSerialize;
import org.springframework.format.annotation.DateTimeFormat;

public class NetworkIsolateConfig implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.ID
     *
     * @mbggenerated
     */
    private Long id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.APP_NAME
     *
     * @mbggenerated
     */
    private String appName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.VIP_ADDR
     *
     * @mbggenerated
     */
    private String vipAddr;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.BALANCE_TYPE
     *
     * @mbggenerated
     */
    private String balanceType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.POOL_NAME
     *
     * @mbggenerated
     */
    private String poolName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.ISOLATED_STATUS
     *
     * @mbggenerated
     */
    private Integer isolatedStatus;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.ACTIVE
     *
     * @mbggenerated
     */
    private String active;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.CREATE_TIME
     *
     * @mbggenerated
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = DateToStringFormatSerialize.class)
    private Date createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.UPDATE_TIME
     *
     * @mbggenerated
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = DateToStringFormatSerialize.class)
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_network_isolate_config.FAILED_DETAIL
     *
     * @mbggenerated
     */
    private String failedDetail;

    private String isolatedIP;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_network_isolate_config
     *
     * @mbggenerated
     */
    public NetworkIsolateConfig(Long id, String appName, String vipAddr, String balanceType, String poolName,
        Integer isolatedStatus, String active, Date createTime, Date updateTime, String failedDetail,
        String isolatedIP) {
        this.id = id;
        this.appName = appName;
        this.vipAddr = vipAddr;
        this.balanceType = balanceType;
        this.poolName = poolName;
        this.isolatedStatus = isolatedStatus;
        this.active = active;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.failedDetail = failedDetail;
        this.isolatedIP = isolatedIP;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_network_isolate_config
     *
     * @mbggenerated
     */
    public NetworkIsolateConfig() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.ID
     *
     * @return the value of t_network_isolate_config.ID
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.ID
     *
     * @param id the value for t_network_isolate_config.ID
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.APP_NAME
     *
     * @return the value of t_network_isolate_config.APP_NAME
     * @mbggenerated
     */
    public String getAppName() {
        return appName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.APP_NAME
     *
     * @param appName the value for t_network_isolate_config.APP_NAME
     * @mbggenerated
     */
    public void setAppName(String appName) {
        this.appName = appName == null ? null : appName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.VIP_ADDR
     *
     * @return the value of t_network_isolate_config.VIP_ADDR
     * @mbggenerated
     */
    public String getVipAddr() {
        return vipAddr;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.VIP_ADDR
     *
     * @param vipAddr the value for t_network_isolate_config.VIP_ADDR
     * @mbggenerated
     */
    public void setVipAddr(String vipAddr) {
        this.vipAddr = vipAddr == null ? null : vipAddr.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.BALANCE_TYPE
     *
     * @return the value of t_network_isolate_config.BALANCE_TYPE
     * @mbggenerated
     */
    public String getBalanceType() {
        return balanceType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.BALANCE_TYPE
     *
     * @param balanceType the value for t_network_isolate_config.BALANCE_TYPE
     * @mbggenerated
     */
    public void setBalanceType(String balanceType) {
        this.balanceType = balanceType == null ? null : balanceType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.POOL_NAME
     *
     * @return the value of t_network_isolate_config.POOL_NAME
     * @mbggenerated
     */
    public String getPoolName() {
        return poolName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.POOL_NAME
     *
     * @param poolName the value for t_network_isolate_config.POOL_NAME
     * @mbggenerated
     */
    public void setPoolName(String poolName) {
        this.poolName = poolName == null ? null : poolName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.ISOLATED_STATUS
     *
     * @return the value of t_network_isolate_config.ISOLATED_STATUS
     * @mbggenerated
     */
    public Integer getIsolatedStatus() {
        return isolatedStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.ISOLATED_STATUS
     *
     * @param isolatedStatus the value for t_network_isolate_config.ISOLATED_STATUS
     * @mbggenerated
     */
    public void setIsolatedStatus(Integer isolatedStatus) {
        this.isolatedStatus = isolatedStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.ACTIVE
     *
     * @return the value of t_network_isolate_config.ACTIVE
     * @mbggenerated
     */
    public String getActive() {
        return active;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.ACTIVE
     *
     * @param active the value for t_network_isolate_config.ACTIVE
     * @mbggenerated
     */
    public void setActive(String active) {
        this.active = active == null ? null : active.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.CREATE_TIME
     *
     * @return the value of t_network_isolate_config.CREATE_TIME
     * @mbggenerated
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.CREATE_TIME
     *
     * @param createTime the value for t_network_isolate_config.CREATE_TIME
     * @mbggenerated
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.UPDATE_TIME
     *
     * @return the value of t_network_isolate_config.UPDATE_TIME
     * @mbggenerated
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.UPDATE_TIME
     *
     * @param updateTime the value for t_network_isolate_config.UPDATE_TIME
     * @mbggenerated
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_network_isolate_config.FAILED_DETAIL
     *
     * @return the value of t_network_isolate_config.FAILED_DETAIL
     * @mbggenerated
     */
    public String getFailedDetail() {
        return failedDetail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_network_isolate_config.FAILED_DETAIL
     *
     * @param failedDetail the value for t_network_isolate_config.FAILED_DETAIL
     * @mbggenerated
     */
    public void setFailedDetail(String failedDetail) {
        this.failedDetail = failedDetail == null ? null : failedDetail.trim();
    }

    public String getIsolatedIP() {
        return isolatedIP;
    }

    public void setIsolatedIP(String isolatedIP) {
        this.isolatedIP = isolatedIP;
    }

}
